﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ConsultaCliente.aspx.cs" Inherits="BookExpress.Cliente.ConsultaCliente" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="../Scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript" src="../Scripts/jquery.maskedinput-1.3.min.js"></script>
<script type="text/javascript">
    $(document).ready(function () {

        $("#MainContent_CPFCNPJ").mask("999.999.999-99", { placeholder: "_" });

        $("#MainContent_TipoCliente_0").change(function () {
            $("#MainContent_CPFCNPJ").mask("999.999.999-99", { placeholder: "_" });
        });

        $("#MainContent_TipoCliente_1").change(function () {
            $("#MainContent_CPFCNPJ").mask("99.999.999/9999-99", { placeholder: "_" });
        });

        $("#MainContent_Telefone").mask("(99) 9999-9999", { placeholder: "_" });
        $("#MainContent_Celular").mask("(99) 9999-9999", { placeholder: "_" });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Consulta de Clientes</h2>
    <p>
         
        <table style="width:100%;">
            <tr>
                <td colspan="2">
                    <asp:RadioButtonList ID="TipoCliente" runat="server">
                        <asp:ListItem Selected="True">Pessoa Física</asp:ListItem>
                        <asp:ListItem>Pessoa Jurídica</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    Nome:<br />
                    <asp:TextBox ID="Nome" runat="server" Width="300px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    CPF/CNPJ:<br />
                    <asp:TextBox ID="CPFCNPJ" runat="server"></asp:TextBox>
                    <asp:Button ID="BtnPesquisar" runat="server" onclick="BtnPesquisar_Click" 
                        Text="Pesquisar" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    Logradouro:<br />
                    <asp:DropDownList ID="TipoLogradouro" runat="server" Enabled="False">
                        <asp:ListItem Selected="True">Selecione</asp:ListItem>
                        <asp:ListItem>Rua</asp:ListItem>
                        <asp:ListItem>Avenida</asp:ListItem>
                    </asp:DropDownList>
                    <asp:TextBox ID="Logradouro" runat="server" Width="655px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Número:<br />
                    <asp:TextBox ID="Numero" runat="server" Width="100px" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    Complemento:<br />
                    <asp:TextBox ID="Complemento" runat="server" Width="160px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Bairro:<br />
                    <asp:TextBox ID="Bairro" runat="server" Width="225px" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    Cidade/UF:<br />
                    <asp:TextBox ID="Cidade" runat="server" Width="225px" Enabled="False"></asp:TextBox>
                    <asp:DropDownList ID="UF" runat="server" Enabled="False">
                        <asp:ListItem Selected="True">Selecione</asp:ListItem>
                        <asp:ListItem>AC</asp:ListItem>
                        <asp:ListItem>AL</asp:ListItem>
                        <asp:ListItem>AP</asp:ListItem>
                        <asp:ListItem>AM</asp:ListItem>
                        <asp:ListItem>BA</asp:ListItem>
                        <asp:ListItem>CE</asp:ListItem>
                        <asp:ListItem>DF</asp:ListItem>
                        <asp:ListItem>ES</asp:ListItem>
                        <asp:ListItem>GO</asp:ListItem>
                        <asp:ListItem>MA</asp:ListItem>
                        <asp:ListItem>MT</asp:ListItem>
                        <asp:ListItem>MS</asp:ListItem>
                        <asp:ListItem>MG</asp:ListItem>
                        <asp:ListItem>PA</asp:ListItem>
                        <asp:ListItem>PB</asp:ListItem>
                        <asp:ListItem>PR</asp:ListItem>
                        <asp:ListItem>PE</asp:ListItem>
                        <asp:ListItem>PI</asp:ListItem>
                        <asp:ListItem>RJ</asp:ListItem>
                        <asp:ListItem>RN</asp:ListItem>
                        <asp:ListItem>RS</asp:ListItem>
                        <asp:ListItem>RO</asp:ListItem>
                        <asp:ListItem>RR</asp:ListItem>
                        <asp:ListItem>SC</asp:ListItem>
                        <asp:ListItem>SP</asp:ListItem>
                        <asp:ListItem>SE</asp:ListItem>
                        <asp:ListItem>TO</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    CEP:<br />
                    <asp:TextBox ID="CEP" runat="server" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    Telefone:<br />
                    <asp:TextBox ID="Telefone" runat="server" Width="160px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Celular:<br />
                    <asp:TextBox ID="Celular" runat="server" Width="160px" Enabled="False"></asp:TextBox>
                </td>
                <td>
                    E-mail:<br />
                    <asp:TextBox ID="Email" runat="server" Width="225px" Enabled="False"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:HiddenField ID="Cod" runat="server" />
                </td>
            </tr>
        </table>
         
    </p>
</asp:Content>
